/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package entity.MRP.ProductionPlan;

import entity.CRM.ProductPrice;
import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.OneToMany;

/**
 *
 * @author zhozho
 */
@Entity
@Inheritance(strategy= InheritanceType.JOINED)
public class PlannedDemand implements Serializable {
   
    @Id
    @GeneratedValue(strategy = GenerationType.AUTO)
    private Long id;
    
    @OneToMany
    private List<ProductPrice> listOfProducts = new ArrayList<ProductPrice>(); 
    
    
    private Integer workingHours;
    private Integer overtimeHours;

    public Long getId() {
        return id;
    }
 
    public List<ProductPrice> getListOfProducts() {
        return listOfProducts;
    }

    public void setListOfProducts(List<ProductPrice> listOfProducts) {
        this.listOfProducts = listOfProducts;
    }

    //public List<Long> getListOfQuantities() {
    //    return listOfQuantities;
    //}

    //public void setListOfQuantities(List<Long> listOfQuantities) {
    //    this.listOfQuantities = listOfQuantities;
    ///}

    public Integer getOvertimeHours() {
        return overtimeHours;
    }

    public void setOvertimeHours(Integer overtimeHours) {
        this.overtimeHours = overtimeHours;
    }

    public Integer getWorkingHours() {
        return workingHours;
    }

    public void setWorkingHours(Integer workingHours) {
        this.workingHours = workingHours;
    }
    
    
}